/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cc.altius.domain.mapper;

import cc.altius.model.SpecialistType;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

/**
 *
 * @author sagar
 */
public class SpecialistTypeRowMapper implements RowMapper<SpecialistType> {

    @Override
    public SpecialistType mapRow(ResultSet rs, int i) throws SQLException {
        SpecialistType specialistType= new SpecialistType();
        specialistType.setSpecialistTypeId(rs.getInt("SPECIALIST_TYPE_ID"));
        specialistType.setSpecialistTypeCode(rs.getString("SPECIALIST_TYPE_CODE"));
        specialistType.setSpecialistType(rs.getString("SPECIALIST_TYPE"));
        return specialistType;
    }
    
}
